{% load static %}
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>智慧能源 | 主界面</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="{% static 'users/bower_components/bootstrap/dist/css/bootstrap.min.css' %}">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{% static 'users/bower_components/font-awesome/css/font-awesome.min.css' %}">
    <!-- Ionicons -->
    <link rel="stylesheet" href="{% static 'users/bower_components/Ionicons/css/ionicons.min.css' %}">
    <!-- Theme style -->
    <link rel="stylesheet" href="{% static 'users/dist/css/AdminLTE.min.css' %}">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However,you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect. -->
    <link rel="stylesheet" href="{% static 'users/dist/css/skins/skin-black.min.css' %}">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING:Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js' %}"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js' %}"></script>
  <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <style>
        .skin-black .wrapper, .skin-black .main-sidebar, .skin-black .left-side {
            background-color: #0d3e7d;
            color: white;
        }

        .skin-black .sidebar a {
            color: white;
        }

        {##}
        .skin-black .sidebar-menu > li:hover > a, .skin-black .sidebar-menu > li.active > a, .skin-black .sidebar-menu > li.menu-open > a {
        {#color: white;#} background-color: #1565c0;
        }

        /**
        .skin-black .sidebar-menu > li > .treeview-menu {
            background: #8aa4af;
        }
         */

        .skin-black .sidebar-menu > li.header {
            color: white;
            background-color: #bc4d44;
        }


        .skin-black .sidebar-menu .treeview-menu > li > a {
            color: lightgray;
            background-color: #1553a7;
        }

        #tab3 > ul {
            background-color: #1553a7;
        }

        li > a > span {
            font-size: 14px;
        }
    </style>
</head>
<!--
BODY TAG OPTIONS:=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->

<body class="hold-transition skin-black sidebar-mini">
<div class="wrapper">

    <!-- Main Header -->
    <header class="main-header">

        <!-- Logo -->
        <a href="/users/main/" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"> <i class="fa fa-home"></i></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>智慧</b>能源</span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a id="push_menu" href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">导航</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">

                    <!-- User Account Menu -->
                    <li class="dropdown user user-menu">
                        <!-- Menu Toggle Button -->
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <!-- The user image in the navbar-->
                            {% if auth == 0 %}
                                <img src="{% static 'users/dist/img/users.svg' %}" class="user-image"
                                     alt="User Image">
                            {% else %}
                                <img src="{% static 'users/dist/img/admin.svg' %}" class="user-image"
                                     alt="User Image">
                            {% endif %}
                            <!-- hidden-xs hides the username on small devices so only the image appears. -->
                            <span class="hidden-xs">{{ account }}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- The user image in the menu -->
                            <li class="user-header"
                                style="height: 105px;background-color: lightslategray">
                                {% if auth == 0 %}
                                    <img src="{% static 'users/dist/img/user_light.svg' %}" class="user-image"
                                         alt="User Image">
                                {% else %}
                                    <img src="{% static 'users/dist/img/admin_light.svg' %}" class="user-image"
                                         alt="User Image">
                                {% endif %}
                                <p>
                                    {{ account }}
                                    <small>{% if auth == 0 %}普通用户{% else %}管理员{% endif %}</small>
                                </p>
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                {#                                <div class="pull-left">#}
                                {#                                    <a href="#" class="btn btn-default btn-flat">修改资料</a>#}
                                {#                                </div>#}
                                <div class="pull-right">
                                    <a href="/users/" class="btn btn-default btn-flat">退出登录</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                    {#                    <li>#}
                    {#                        <a href="#"><i class="fa fa-question-circle"></i></a>#}
                    {#                    </li>#}
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar:style can be found in sidebar.less -->
        <section class="sidebar">

            <!-- Sidebar user panel (optional) -->
            <div class="user-panel">
                <div class="pull-left image">

                    {% if auth == 0 %}
                        <img src="{% static 'users/dist/img/user_light.svg' %}" class="img-circle" alt="User Image">
                    {% else %}
                        <img src="{% static 'users/dist/img/admin_light.svg' %}" class="img-circle" alt="User Image">
                    {% endif %}
                </div>
                <div class="pull-left info">
                    <p>{{ account }}</p>
                    <!-- Status -->
                    <a href="#">{% if auth == 0 %}普通用户{% else %}管理员{% endif %}</a>
                </div>
            </div>

            <!-- Sidebar Menu -->
            <ul id="allTab" class="sidebar-menu" data-widget="tree">
                <li class="header">欢迎您，{{ belongs }}</li>
                <!-- Optionally,you can add icons to the links -->
                <li id="tab2" onclick="jump(this)" style="cursor:pointer;"><a><i class="fa fa-object-ungroup"></i>
                    <span>模型计算</span></a></li>
                {% if auth == 1 %}
                    <li id="tab3" style="cursor:pointer;" class="treeview">
                        <a>
                            <i class="fa fa-desktop"></i>
                            <span>设备维护</span>
                            {#                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>#}
                            <span class="pull-right-container">
                                <span class="label label-primary pull-right">13</span>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="#" to="/data/showICE/"><i class="fa fa-circle-o"></i>内燃机</a></li>
                            <li><a href="#" to="/data/showGB/"><i class="fa fa-circle-o"></i>燃气锅炉</a></li>
                            <li><a href="#" to="/data/showEB/"><i class="fa fa-circle-o"></i>电锅炉</a></li>
                            <li><a href="#" to="/data/showAR/"><i class="fa fa-circle-o"></i>吸收式制冷机</a></li>
                            <li><a href="#" to="/data/showIT/"><i class="fa fa-circle-o"></i>蓄冰槽</a></li>
                            <li><a href="#" to="/data/showERU/"><i class="fa fa-circle-o"></i>电制冷机组</a></li>
                            <li><a href="#" to="/data/showAP/"><i class="fa fa-circle-o"></i>风冷热泵</a></li>
                            <li><a href="#" to="/data/showGP/"><i class="fa fa-circle-o"></i>地源热泵</a></li>
                            <li><a href="#" to="/data/showGT/"><i class="fa fa-circle-o"></i>燃气轮机</a></li>
                            <li><a href="#" to="/data/showWP/"><i class="fa fa-circle-o"></i>风机</a></li>
                            <li><a href="#" to="/data/showPVP/"><i class="fa fa-circle-o"></i>光伏板</a></li>
                            <li><a href="#" to="/data/showARS/"><i class="fa fa-circle-o"></i>烟气热水机</a></li>
                            <li><a href="#" to="/data/showButtery/"><i class="fa fa-circle-o"></i>蓄电池</a></li>
                        </ul>
                    </li>
                {% endif %}
                <li id="tab4" onclick="jump(this)" style="cursor:pointer;"><a><i class="fa fa-bar-chart"></i>
                    <span>历史规划</span></a></li>
                {% if auth == 1 %}
                    <li id="tab1" onclick="jump(this)" style="cursor:pointer;"><a><i class="fa fa-users"></i>
                        <span>用户管理</span></a></li>
                {% endif %}
            </ul>
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div id="main_content" class="content-wrapper">

        <!-- Main content -->
        <section class="content">
            <iframe id="mainFrame" src="/data/showTempDay/"
                    style="overflow: hidden"></iframe>
            <h6 style="margin-right: 15px;float: right;color: black">Design by <a href="http://www.nwh.cn/">中国电建集团西北勘测设计研究院有限公司</a>
                & <a
                        href="http://www.xauat.edu.cn/zh-cn/index.php">西安建筑科技大学</a></h6>
        </section>

    </div>
    <!-- /.content-wrapper -->

    <div id="alertDiv"></div>


</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 3 -->
<script src="{% static 'users/bower_components/jquery/dist/jquery.min.js' %}"></script>
<!-- Bootstrap 3.3.7 -->
<script src="{% static 'users/bower_components/bootstrap/dist/js/bootstrap.min.js' %}"></script>
<!-- AdminLTE App -->
<script src="{% static 'users/dist/js/adminlte.min.js' %}"></script>
<script src="{% static 'users/dist/main.js' %}"></script>

</body>

</html>